.class Lcom/nemustech/regina/AppList$1;
.super Ljava/lang/Object;
.source "AppList.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFModel$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/AppList;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/AppList;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/AppList;)V
    .locals 0
    .parameter

    .prologue
    .line 79
    iput-object p1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onLongPressdown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 1
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 135
    iget-object v0, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v0}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->destroySelectedPanel()V

    .line 136
    const/4 v0, 0x1

    return v0
.end method

.method public onSelected(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 4
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v3, 0x0

    .line 118
    const-string v1, "AppList"

    const-string v2, "panel in applist - onSelected!!"

    invoke-static {v1, v2, v3}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 119
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1, p3, p4}, Lcom/nemustech/regina/AppList;->access$100(Lcom/nemustech/regina/AppList;FF)I

    move-result v0

    .line 120
    .local v0, index:I
    if-ltz v0, :cond_1

    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$200(Lcom/nemustech/regina/AppList;)I

    move-result v1

    add-int/2addr v1, v0

    iget-object v2, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v2}, Lcom/nemustech/regina/AppList;->access$300(Lcom/nemustech/regina/AppList;)I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 121
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAppList;->destroySelectedPanel()V

    .line 122
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ElementAppList;->requestClose()V

    .line 123
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$800(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaLauncher;->getReginaPref()Lcom/nemustech/regina/ReginaPreference;

    move-result-object v1

    invoke-virtual {v1}, Lcom/nemustech/regina/ReginaPreference;->isAppListScrollEffectOn()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 124
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v1

    invoke-virtual {v1, v3}, Lcom/nemustech/regina/ElementAppList;->returnToOriginAngle(Z)V

    .line 126
    :cond_0
    iget-object v1, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v1}, Lcom/nemustech/regina/AppList;->access$800(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v1

    iget-object v2, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v2}, Lcom/nemustech/regina/AppList;->access$500(Lcom/nemustech/regina/AppList;)Ljava/util/List;

    move-result-object v2

    iget-object v3, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v3}, Lcom/nemustech/regina/AppList;->access$200(Lcom/nemustech/regina/AppList;)I

    move-result v3

    add-int/2addr v3, v0

    invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/nemustech/regina/AppInfo;

    iget-object v2, p0, Lcom/nemustech/regina/AppInfo;->intent:Landroid/content/Intent;

    invoke-virtual {v1, v2}, Lcom/nemustech/regina/ReginaLauncher;->startActivitySafely(Landroid/content/Intent;)V

    .line 129
    :cond_1
    const/4 v1, 0x1

    return v1
.end method

.method public onTouchDown(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 10
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    const/4 v9, 0x1

    const/4 v8, 0x0

    .line 97
    const-string v4, "AppList"

    const-string v5, "panel in applist - onTouchDown!!"

    invoke-static {v4, v5, v8}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 98
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4, p3, p4}, Lcom/nemustech/regina/AppList;->access$100(Lcom/nemustech/regina/AppList;FF)I

    move-result v0

    .line 99
    .local v0, index:I
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-virtual {v4}, Lcom/nemustech/regina/AppList;->getParentHolder()Lcom/nemustech/tiffany/world/TFHolder;

    move-result-object v4

    invoke-virtual {v4}, Lcom/nemustech/tiffany/world/TFHolder;->getDeviation()F

    move-result v2

    .line 100
    .local v2, parentDeviation:F
    if-ltz v0, :cond_0

    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4}, Lcom/nemustech/regina/AppList;->access$200(Lcom/nemustech/regina/AppList;)I

    move-result v4

    add-int/2addr v4, v0

    iget-object v5, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v5}, Lcom/nemustech/regina/AppList;->access$300(Lcom/nemustech/regina/AppList;)I

    move-result v5

    if-ge v4, v5, :cond_0

    invoke-static {v2}, Ljava/lang/Math;->abs(F)F

    move-result v4

    const v5, 0x3d4ccccd

    cmpg-float v4, v4, v5

    if-gtz v4, :cond_0

    .line 102
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    iget-object v5, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v5}, Lcom/nemustech/regina/AppList;->access$200(Lcom/nemustech/regina/AppList;)I

    move-result v5

    add-int/2addr v5, v0

    invoke-static {v4, v5}, Lcom/nemustech/regina/AppList;->access$402(Lcom/nemustech/regina/AppList;I)I

    .line 104
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v5

    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4}, Lcom/nemustech/regina/AppList;->access$500(Lcom/nemustech/regina/AppList;)Ljava/util/List;

    move-result-object v4

    iget-object v6, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v6}, Lcom/nemustech/regina/AppList;->access$200(Lcom/nemustech/regina/AppList;)I

    move-result v6

    add-int/2addr v6, v0

    invoke-interface {v4, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/nemustech/regina/AppInfo;

    invoke-virtual {v5, v4, v8}, Lcom/nemustech/regina/ElementAppList;->createSelectedPanel(Lcom/nemustech/regina/AppInfo;I)Lcom/nemustech/tiffany/world/TFPanel;

    move-result-object v3

    .line 106
    .local v3, selectedPanel:Lcom/nemustech/tiffany/world/TFPanel;
    const/4 v4, 0x2

    new-array v1, v4, [I

    .line 107
    .local v1, locations:[I
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4, v0, v1}, Lcom/nemustech/regina/AppList;->access$600(Lcom/nemustech/regina/AppList;I[I)V

    .line 108
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    iget-object v5, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v5}, Lcom/nemustech/regina/AppList;->access$800(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v5

    iget-object v6, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v6}, Lcom/nemustech/regina/AppList;->access$900(Lcom/nemustech/regina/AppList;)I

    move-result v6

    div-int/lit8 v6, v6, 0x2

    iget-object v7, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v7}, Lcom/nemustech/regina/AppList;->access$1000(Lcom/nemustech/regina/AppList;)I

    move-result v7

    div-int/lit8 v7, v7, 0x2

    sub-int/2addr v6, v7

    aget v7, v1, v8

    add-int/2addr v6, v7

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/AppList;->access$702(Lcom/nemustech/regina/AppList;F)F

    .line 109
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    iget-object v5, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v5}, Lcom/nemustech/regina/AppList;->access$800(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ReginaLauncher;

    move-result-object v5

    iget-object v6, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v6}, Lcom/nemustech/regina/AppList;->access$1200(Lcom/nemustech/regina/AppList;)I

    move-result v6

    div-int/lit8 v6, v6, 0x2

    neg-int v6, v6

    iget-object v7, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v7}, Lcom/nemustech/regina/AppList;->access$1300(Lcom/nemustech/regina/AppList;)I

    move-result v7

    div-int/lit8 v7, v7, 0x2

    add-int/2addr v6, v7

    aget v7, v1, v9

    sub-int/2addr v6, v7

    invoke-static {v5, v6}, Lcom/nemustech/regina/RUtils;->convertTo3DSize(Landroid/content/Context;I)F

    move-result v5

    invoke-static {v4, v5}, Lcom/nemustech/regina/AppList;->access$1102(Lcom/nemustech/regina/AppList;F)F

    .line 110
    iget-object v4, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v4}, Lcom/nemustech/regina/AppList;->access$700(Lcom/nemustech/regina/AppList;)F

    move-result v4

    iget-object v5, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v5}, Lcom/nemustech/regina/AppList;->access$1100(Lcom/nemustech/regina/AppList;)F

    move-result v5

    const/4 v6, 0x0

    invoke-virtual {v3, v4, v5, v6}, Lcom/nemustech/tiffany/world/TFPanel;->locate(FFF)V

    .line 111
    invoke-virtual {v3, v9}, Lcom/nemustech/tiffany/world/TFPanel;->setVisibility(Z)V

    .line 113
    .end local v1           #locations:[I
    .end local v3           #selectedPanel:Lcom/nemustech/tiffany/world/TFPanel;
    :cond_0
    return v9
.end method

.method public onTouchDrag(Lcom/nemustech/tiffany/world/TFModel;IFFFFI)Z
    .locals 3
    .parameter "model"
    .parameter "faceIndex"
    .parameter "sx"
    .parameter "sy"
    .parameter "ex"
    .parameter "ey"
    .parameter "tickPassed"

    .prologue
    .line 90
    const-string v0, "AppList"

    const-string v1, "panel in applist - onTouchDrag!!"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 91
    iget-object v0, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v0}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->destroySelectedPanel()V

    .line 92
    const/4 v0, 0x1

    return v0
.end method

.method public onTouchUp(Lcom/nemustech/tiffany/world/TFModel;IFF)Z
    .locals 3
    .parameter "model"
    .parameter "faceIndex"
    .parameter "x"
    .parameter "y"

    .prologue
    .line 82
    const-string v0, "AppList"

    const-string v1, "panel in applist - onTouchUp!!"

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 83
    iget-object v0, p0, Lcom/nemustech/regina/AppList$1;->this$0:Lcom/nemustech/regina/AppList;

    invoke-static {v0}, Lcom/nemustech/regina/AppList;->access$000(Lcom/nemustech/regina/AppList;)Lcom/nemustech/regina/ElementAppList;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/ElementAppList;->destroySelectedPanel()V

    .line 84
    const/4 v0, 0x1

    return v0
.end method
